﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace EggHarvest.GraphicsSupport
{
    public class Shit:TexturedPrimitive
    {
         private Vector2 mDeltaPosition; //Change current position by this amount
        Vector2 kInitSize = new Vector2(5,5);

        public Shit() : base("shit")
        {
            mPosition = Camera.RandomPosition();
            mSize = kInitSize;
        }


        public float Radius
        {
            get { return mSize.X*0.5f; }
            set
            {
                mSize.X = 2f*value;
                mSize.Y = mSize.X;
            }
        }

      
        public override void Fall()
        {
            float speed = 0.00000000001f;
            if (Game1.score>10)
            {
                speed =(float) (Game1.score/20*0.09) ;
            }
            
            mDeltaPosition.X = 0;
            mDeltaPosition.Y = -0.4f + (-speed);
            Position += mDeltaPosition;
        }
    }
}
